<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
</head>
<body>
<a href="<?php echo $_SERVER["HTTP_REFERER"];?>" target="iframe_main">学生查询</a>>>学生详情<br/><br/>
<?php
if(isset($_GET["studentno"])){
	$No=$_GET["studentno"];
	echo "该页面显示序号为 {$No} 的详情!"."<br/>";
	echo "<table border=\"1\" width=\"350\">";
	echo "<tr>";
	echo "<td>No</td>";
	echo "<td>姓名</td>";
	echo "<td>备注信息</td>";
	echo "</tr>";
	$sqlstudentxq="select studentno,studentname,studentinfos from students";
	include_once("database.php");
$result=@mysql_query($sqlstudentxq) or die("查询信息失败:".mysql_error()."<br/>");
if(mysql_num_rows($result)>0){
	while($row=mysql_fetch_array($result,MYSQL_ASSOC)){
		echo "<tr>";
		foreach($row as $value){
			echo "<td>{$value}</td>";
		}
		echo "</tr>";
	}
}else{
	echo "<script>alert('没有查找到指定的信息!');</script>";
}
}else{
	echo "没有指定的序号,无法查看详情!";
}
?>
</body>
</html>